package com.nf.db.handler.list;

import com.nf.db.DefaultRowProcessor;
import com.nf.db.RowProcessor;

import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;

import static com.nf.db.RowProcessor.DEFAULT_ROWPROCESSOR;

public class ArrayListHandler extends AbstractListHandler<Object[]> {


    @Override
    protected Object[] handleRow(ResultSet rs) throws SQLException {
        return DEFAULT_ROWPROCESSOR.toArray(rs);
    }
}
